//
//  PicAndTextIntroduceView.m
//  仿造淘宝商品详情页
//
//  Created by yixiang on 16/3/25.
//  Copyright © 2016年 yixiang. All rights reserved.
//

#import "PicAndTextIntroduceView.h"
#import "YX.h"
#import "YLActivityTableViewCell.h"
#import "YLGlobeHeader.h"
@interface PicAndTextIntroduceView()

@end

@implementation PicAndTextIntroduceView


- (instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame]) {
        NSLog(@"aaa");
        [self.tableView registerNib:[UINib nibWithNibName:NSStringFromClass([YLActivityTableViewCell class]) bundle:nil] forCellReuseIdentifier:[YLActivityTableViewCell cellID]];
    }
    return self;
}


- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    NSLog(@"bbb");
    return 30;
}

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
    return  YLScreenW * 323 / 750.0;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    YLActivityTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:[YLActivityTableViewCell cellID]];
    if (cell) {
    return cell;
    } else {
    [self.tableView registerNib:[UINib nibWithNibName:NSStringFromClass([YLActivityTableViewCell class]) bundle:nil] forCellReuseIdentifier:[YLActivityTableViewCell cellID]];
        cell = [tableView dequeueReusableCellWithIdentifier:[YLActivityTableViewCell cellID]];
        return cell;
        
    }
    
}

@end
